﻿@using Bootstrap.Controllers
@model ILookup<string, VariableValueViewModel>
@{
    const string lead = "@";
}

<form method="POST">
    <div>
        <button type="submit">Save</button>
    </div>
    <div>
        @Html.AntiForgeryTokenOrchard()
        <h3>Variables</h3>
        @foreach (var category in Model)
        {
        <fieldset style="margin-left: 1.7em; min-width: 300px; clear: none">
            <legend>@category.Key</legend>
            @foreach (var variable in category)
            {
                <label>@(lead)@(variable.Name)</label>                               
                @Html.TextBox((string)variable.Name, (string)variable.Value, new { Size = 50 })
            }
        
        </fieldset> 
        }
    </div>
</form>
